package BehaviorDesignPattern.CommandPattern;

// 接收者：灯
class Light {
    public void on() {
        System.out.println("灯打开了");
    }

    public void off() {
        System.out.println("灯关闭了");
    }
}